#!/bin/bash

EXAMPLE=hello
WT_BASE_DIR=`pwd`


mkdir debug
cd debug
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j2
make -j2 -C examples
cd $WT_BASE_DIR/debug/examples/$EXAMPLE/
make -j2

cd $WT_BASE_DIR/examples/$EXAMPLE/
gdb
cd $WT_BASE_DIR/
